package com.example.demo.zaqizabatest.函数接口;

import java.util.function.BiPredicate;

/**
 * @ClassName BiPredicateTest  BiPredicate<T,U> 表示接受两个不同诶行的参数，且返回布尔类型的结果的操作
 * @Author lys4134
 * @Date 2021/08/13 15:17:49
 * @Description BiPredicateTest
 * @Version 1.0
 **/
public class BiPredicateTest {
    public static void main(String[] args) {
        eval(AHelp.key, AHelp.value, (a, b) -> (a.length() - b.length()) > 0);
    }

    public static void eval(String list, String list2, BiPredicate<String, String> biPredicate) {
        Boolean apply = biPredicate.test(list, list2);
        System.out.println(apply);
    }
}
